<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <%- include common %>
</head>

<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                  <span class="sr-only">Toggle navigation</span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand hidden-sm" href="/index">超管系统后台</a>
            </div>
            <div class="navbar-collapse collapse " role="navigation ">
                <ul class="nav navbar-nav ">

                    <%  if(!username){  %>
                        <li class="<%- title=='login'?'active':'' %>"><a href="/login">登陆</a></li>
                        <li class="<%- title=='register'?'active':'' %>"><a href="/register">注册</a></li>
                        <%  }else{  %>
                            <li class="<%- title=='movies'?'active':'' %>"><a href="/movies">电影中心</a></li>
                            <li class="<%- title=='mine'?'active':'' %>"><a class="reddot" href="/mine">个人信息</a></li>
                            <li class="<%- title=='allcom'?'active':'' %>"><a class="reddot" href="/allcom">评论中心</a></li>
                            <li class="<%- title=='chatroom'?'active':'' %>"><a class="reddot" href="/chatroom">聊天室</a></li>
                            <%  }  %>
                </ul>
                <% if(username){ %>
                    <ul class="nav navbar-nav navbar-right hidden-sm">
                        <li onclick="location.href='/leaveout'"><a>退出登录</a></li>
                    </ul>
                    <% } %>
            </div>
        </div>
    </div>

</body>

<!-- <script>
    
    if (!username) {
        $("#my").css("display", "none")
        $(".navbar-right").css("display,none")
    }
</script>  -->

</html>